﻿<?php
require('configs/include.php');

class c_programEdit extends super_controller {

    public function display() {

        $varAux = $this->gvar['n_index'] . " -> " . $this->gvar['n_program'];
        $this->engine->assign('ubicationPath', $varAux);
        $this->engine->display('header.tpl');
        $this->engine->display('programEdit.tpl');
        $this->engine->display('footer.tpl');
    }

    public function run() {
        $typeSession = $_SESSION['usuario']['tipo'];
        if ($typeSession == "lider" || $typeSession == "programador" || $typeSession == "intermediario") {
            $this->display();
        } else {
            $this->engine->display('header.tpl');
            $this->engine->display('sinPermisos.tpl');
            $this->engine->display('footer.tpl');
        }
    }

}

$call = new c_programEdit();
$call->run();
?>